.scroll-view {
  width: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  max-height: 500px;

  .demo-form-inline {
    width: 100%;

    .el-input {
      width: 220px;
    }

    .textarea {
      width: 220px;
    }

    .add-node {
      width: 103px;
      height: 36px;
      background: rgb(245, 247, 250);
      border-radius: 4px;
      border: 1px solid #dde2ee;
      font-weight: 400;
      font-size: 13px;
      color: #5c5f66;
      padding: 0;
      text-align: center;

      &:hover {
        opacity: 0.6;
      }
    }

    .node-box {
      width: 100%;
      height: 293px;
      border-radius: 8px;
      border: 1px solid #dde2ee;
      overflow-y: auto;
      overflow-x: hidden;
      padding: 20px 15px;
      box-sizing: border-box;
      width: 100%;
      height: 300px;
      border-radius: 8px;
      overflow-y: auto;
      overflow-x: hidden;
      border: 1px solid #dde2ee;

      ::v-deep .el-checkbox {
        display: inline-flex;
        align-items: center;
      }

      ::v-deep .el-checkbox__label {
        line-height: 1;
      }

      ::v-deep .el-checkbox.is-bordered {
        margin: 0 10px 10px 0 !important;
      }

      .check-item {
        width: 250px;
        height: 89px;
        border-radius: 4px;
        // border: 1px solid #3d7fff;
        border: 1px solid #dde2ee;
        padding: 10px;
        box-sizing: border-box;
        margin: 0 10px 10px 0;

        &:nth-child(3n) {
          margin-right: 0;
        }

        .radio-group {
          width: 100%;
          padding-left: 25px;
          box-sizing: border-box;
          margin-top: 10px;
        }
      }
    }

    .template-box {
      width: 100%;
      display: flex;
      flex-wrap: wrap;
      align-items: center;

      .template-item {
        width: calc(50% - 20px);
        height: 300px;
        background: #fafbfc;
        border-radius: 8px;
        border: 1px solid #dde2ee;
        margin: 0 20px 20px 0;
        position: relative;

        .el-icon-error {
          position: absolute;
          top: -10px;
          right: -10px;
          font-size: 20px;
          color: #b6b6b6;
        }

        &:nth-child(2n) {
          margin-right: 0;
        }

        .scroll-view {
          width: 100%;
          height: 100%;
          padding: 11px 12px;
          box-sizing: border-box;
          overflow-y: auto;
          overflow-x: auto;

          .template-title {
            font-weight: 500;
            font-size: 14px;
            color: #5c5f66;
            margin: 0 0 10px;

            .title {
              font-weight: 500;
              font-size: 15px;
              color: #5c5f66;
            }

            .el-icon-edit,
            .el-icon-circle-plus-outline,
            .el-icon-delete {
              font-size: 16px;
              color: #b6b6b6;
              margin-left: 5px;
            }
          }

          .node-item-box {
            width: 100%;

            .node-item-title {
              width: 100%;
              display: flex;
              align-items: center;
              justify-content: space-between;
              margin-bottom: 10px;

              .el-icon-circle-plus-outline,
              .el-icon-delete {
                font-size: 16px;
                color: #b6b6b6;
                margin-left: 5px;
              }

              .checkbox-box {
                display: flex;
                align-items: center;

                .title-text {
                  font-weight: 400;
                  font-size: 14px;
                  color: #5c5f66;
                }
              }

              .el-icon-edit {
                color: #b6b6b6;
                margin-left: 5px;
                font-size: 16px;
              }
            }

            .node-input {
              width: 100%;
              margin: 0 0 10px;
            }

            .check-box {
              width: 100%;

              .tag {
                height: 32px;
                background: #ffffff;
                border-radius: 4px;
                border: 1px solid #dcdfe6;
                font-weight: 400;
                font-size: 12px;
                color: #5c5f66;
                margin: 0 10px 10px 0;

                // width: 100%;
                // overflow: hidden; /* 确保溢出文本会被隐藏 */
                // white-space: nowrap; /* 确保文本在一行内显示 */
                // text-overflow: ellipsis; /* 使用省略号显示文本溢出 */
                i {
                  color: #b6b6b6;
                  margin: 0 0 0 5px;
                  font-size: 16px;
                }
              }
            }
          }
        }
      }
    }
  }
}

.bz-search {
  display: flex;
  justify-content: flex-end;

  ::v-deep .el-form-item {
    margin-bottom: 10px;

    &:last-child {
      margin-right: 0;
    }
  }
}

::v-deep .el-table {
  .el-table__body-wrapper {
    overflow-y: auto !important;
  }

  .el-table__body .cell {
    height: auto !important;
    line-height: 23px !important;
    overflow: unset;
  }
}

.row-box {
  margin: -10px 0;
  transition: .3s all;
  position: relative;

  .row-open {
    padding: 10px 0;
    cursor: pointer;
    font-size: 14px;
    color: rgb(130, 138, 157);
    ;
  }

  .row-close-box {
    display: flex;
    justify-content: center;
  }

  .row-close {
    position: absolute;
    left: 50%;
    bottom: -5px;
    transform: translate(-50%, 0%);
    width: 20px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, .2);
    color: rgba(0, 0, 0, .2);
    border-radius: 4px;
    font-size: 12px;
    z-index: 99;
    cursor: pointer;
  }

  .row-item {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 40px;
    border-top: 1px solid #f5f7fa;
    box-sizing: border-box;

    div {
      flex: 1;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    &:first-child {
      border-top: 0px;
    }
  }
}